<?php

// Acceso restringido
defined('JL') or die('Acceso restringido');

//Definiciones Globales JL framework
$parts = explode(DS, JL_ROOT_PATH);

//Definiciones path del sistema
define('JLPATH_ROOT', implode(DS, $parts));

define('JLPATH_LIBRARIES', JLPATH_ROOT . DS . 'Libraries');
define('JLPATH_TEMPLATES', JLPATH_ROOT . DS . 'Templates');
define('JLPATH_RESOUCES', JLPATH_ROOT . DS . 'Resouces');
define('JLPATH_INCLUDES', JLPATH_ROOT . DS . 'Includes');
define('JLPATH_CONTROLLERS', JLPATH_ROOT . DS . 'Controllers');
define('JLPATH_VIEWS', JLPATH_ROOT . DS . 'Views');
define('JLPATH_MODELS', JLPATH_ROOT . DS . 'Models');
define('JLPATH_HELPERS', JLPATH_ROOT . DS . 'Helpers');
define('JLPATH_SITE', JLPATH_ROOT);

/* si es Adminitrator */
array_pop($parts);
$sitepath = implode(DS, $parts);
define('JLPATH_WEB_SITE', $sitepath);